<!DOCTYPE html>
<html>
<head lang="en">
    <meta charset="UTF-8">
    <meta name="viewport" content="width=device-width, initial-scale=1,maximum-scale=1.0,user-scalable=no;">
    <title>原创作品</title>
    <link rel="stylesheet" href="/Public/Wap/hpf/css/Hpfstyle.css" />
    <script src="/Public/static/jquery-1.10.2.min.js"></script>
    <style>
        body .next{display: none}
    </style>
    <script>
        $(function(){
            $('#page_nav').on('click','a',function(){
                $.get($(this).attr('href'),{},function(r){
                    $('#data_list').append(r.html);
                    $('#page_nav').html(r.pageNav);
                },'json');
                return false;
            });
        });
        $(window).scroll( function() {
	          totalheight = parseFloat($(window).height()) + parseFloat($(window).scrollTop());     //浏览器的高度加上滚动条的高度
	          if ($(document).height() <= totalheight)     //当文档的高度小于或者等于总的高度的时候，开始动态加载数据
	          {
                  $('body .next').click();
              }
	     });
    </script>
</head>
<body style="background-color:#ededed;">
<div class="yczp">
    <ul id="data_list">
        <volist name="list" id="work">
            <li>
                <a href="{:U('detail',array('id'=>$work['id']))}"><img src="{$work.pic_path}"/>
                    <div class="yczp1">
                        <p>{$work.wname}</p>
                        <label>{$work.explain}</label>
                    </div>
                </a>
            </li>
        </volist>
    </ul>
</div>
<!-- 分页 -->
<div id="page_nav">{$pageNav}</div>
</body>
</html>